from django.urls import path,include
from api.views import views_auth, views_rbac
from rest_framework.routers import DefaultRouter

router = DefaultRouter()
router.register(r'roles', views_rbac.RolesViewSet)
router.register(r'users', views_rbac.UsersViewSet)



urlpatterns = [
    path(r'auth/', views_auth.AuthView.as_view()),
    path(r'userInfo/', views_auth.AuthInfoView.as_view()),
    path(r'logout/', views_auth.LogoutView.as_view()),
    path('',include(router.urls))
]